package com.xiaoyu.lanling.feature.feedback

import `in`.srain.cube.views.list.CubeRecyclerViewAdapter
import com.xiaoyu.lanling.feature.feedback.viewholders.FeedbackMediaAddViewHolder
import com.xiaoyu.lanling.feature.feedback.viewholders.FeedbackMediaImageViewHolder

object FeedbackViewHolderManager {

    const val ITEM_VIEW_TYPE_PUBLISH_MEDIA_IMAGE = 0
    const val ITEM_VIEW_TYPE_PUBLISH_MEDIA_ADD = 1

    fun bindViewHolderForPublish(adapter: CubeRecyclerViewAdapter<*>?) {
        adapter?.setViewHolderClass(ITEM_VIEW_TYPE_PUBLISH_MEDIA_IMAGE, null, FeedbackMediaImageViewHolder::class.java, 9)
        adapter?.setViewHolderClass(ITEM_VIEW_TYPE_PUBLISH_MEDIA_ADD, null, FeedbackMediaAddViewHolder::class.java, 1)
    }
}